#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
 




int main()
{
    pid_t pid = fork();
    if(pid==0)
    {
       //子进程
       printf("i am child process,pid: %d \n",getpid());
       printf("execl begin \n");
       execl("/usr/bin/ls","ls","-a","-l",NULL);
       printf("execl end \n");
    }
}
